package com.xmg.shop.api.order.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * Created by Administrator on 2017/11/17.
 */
@Setter @Getter
public class OrderAction extends BaseDomain{

    private Long orderId;//该订单商品所属的订单id
    private Long actionUser;//操作者
    private int orderStatus;//订单状态
    private int shippingStatus;//物流状态
    private int payStatus;//支付状态
    private int actionPlace;//该操纵的发出位置
    private String actionNote;//操作日志
    private Date actionTime ;//操作时间

    public String getOrderStatusDisplay(){
        switch (orderStatus) {
            case 0:
                return "未确认";
            case 1:
                return "已确认";
            case 2:
                return "已完成";
            default:
                return "";
        }
    }
    public String getShippingStatusDisplay(){
        switch (shippingStatus) {
            case 0:
                return "未发货";
            case 1:
                return "已发货";
            case 2:
                return "已完成";
            default:
                return "";
        }
    }
    public String getpayStatusDisplay(){
        switch (payStatus) {
            case 0:
                return "未付款";
            case 1:
                return "已付款";
            default:
                return "";
        }
    }
}
